/*
 * Copyright 2012 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.dspl.validate.violation;

/**
 * Interface for visitors of {@link Violation}s (visitor design pattern).
 *
 * @author Maryla Ustarroz Calonge
 * @param <T> return type of the visit method
 */
public interface ViolationVisitor<T> {

  T visit(InvalidIdViolation violation);
  T visit(DuplicateIdViolation violation);

  T visit(InfoNoInfoViolation violation);
  T visit(InfoNoNameViolation violation);
  T visit(InfoNoNameInLanguageViolation violation);

  T visit(DatasetNoIdViolation violation);

  T visit(ConceptNoIdViolation violation);
  T visit(ConceptNoTypeViolation violation);
  T visit(ConceptParentConceptNotFoundViolation violation);
  T visit(ConceptConflictingParentTypeViolation violation);
  T visit(ConceptInheritanceCycleViolation violation);
  T visit(ConceptTopicNotFoundViolation violation);
  T visit(ConceptConflictingDefaultValueTypeViolation violation);
  T visit(ConceptUnusedViolation violation);

  T visit(ConceptMappingTableNotFoundViolation violation);
  T visit(ConceptMappingColumnNotFoundViolation violation);
  T visit(ConceptMappingPropertyColumnNotFoundViolation violation);
  T visit(ConceptMappingConflictingColumnTypeViolation violation);
  T visit(ConceptMappingConflictingPropertyColumnTypeViolation violation);

  T visit(EntityConceptNoNamePropertyMappingViolation violation);

  T visit(DimensionConceptNoDataViolation violation);
  T visit(DimensionConceptProblematicTypeViolation violation);

  T visit(ConceptAttributeNoIdViolation violation);
  T visit(ConceptAttributeNoTypeViolation violation);

  T visit(ConceptAttributeConflictingParentTypeViolation violation);
  T visit(ConceptAttributeConflictingValueConceptTypeViolation violation);
  T visit(ConceptAttributeConceptNotFound violation);
  T visit(ConceptAttributeValueConceptDoesNotExtendParentConcept violation);

  T visit(ConceptPropertyNoIdViolation violation);
  T visit(ConceptPropertyNoTypeViolation violation);
  T visit(ConceptPropertyConceptNotFoundViolation violation);
  T visit(ConceptPropertyConflictingConceptTypeViolation violation);

  T visit(TableNoIdViolation violation);
  T visit(TableNoColumnsViolation violation);
  T visit(TableDefinesMultipleConceptsViolation violation);
  T visit(TableUsedByMultipleSlicesViolation violation);
  T visit(TableDefinesConceptAndUsedInSliceViolation violation);

  T visit(ColumnNoIdViolation violation);
  T visit(ColumnNoTypeViolation violation);
  T visit(ColumnConflictingConstantValueTypeViolation violation);

  T visit(SliceNoIdViolation violation);
  T visit(SliceDuplicateConceptViolation violation);
  T visit(SliceConceptNotFoundViolation violation);
  T visit(SliceColumnNotFoundViolation violation);
  T visit(SliceTableNotFoundViolation violation);
  T visit(SliceConflictingTypeViolation violation);
}
